package com.tbit.main.service.impl;

import com.tbit.main.constant.DaoParamConstant;
import com.tbit.main.dao.core.RideCardDao;
import com.tbit.main.pojo.RideCardSta;
import com.tbit.main.service.RideCardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

/**
 * 骑行卡
 *
 * @author Leon
 * 2020年4月10日 下午3:44:56
 */
@Service("rideCardService")
public class RideCardServiceImpl implements RideCardService {
    @Autowired
    private RideCardDao rideCardDao;

    @Override
    public RideCardSta staByTime(Integer accountId, String startTime, String endTime) {
        Map<String, Object> params = new HashMap<String, Object>();
        params.put(DaoParamConstant.accountId, accountId);
        params.put(DaoParamConstant.startTime, startTime);
        params.put(DaoParamConstant.endTime, endTime);

        return rideCardDao.staByTime(params);
    }

}
